<%@ include file="/WEB-INF/jsp/includes.jsp" %>
<c:choose>
    <c:when test="${cooperation.new}"><c:set var="method" value="post"/></c:when>
    <c:otherwise><c:set var="method" value="put"/></c:otherwise>
</c:choose>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>浙江孵化器在线后台管理系统</title>
    <link href="<spring:url value="/static/style/index.css" htmlEscape="true" />" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="<spring:url value="/static/js/jquery.min.js" htmlEscape="true" />"></script>
    <script type="text/javascript" src="<spring:url value="/static/js/jquery.min.js" htmlEscape="true" />"></script>
<%@include file="/WEB-INF/jsp/inc/calendar.jsp"%>
</head>
<body>
<div class="list_right_title">
    <span><img src="<spring:url value="/static/images/im.jpg" htmlEscape="true" />" alt="信息管理"></span>光伏在线>>光伏产业>>添加
</div>
<div class="fhq_add">
    <div class="fhq_add_in">
        <div class="fhq_add_form">
            <form:form modelAttribute="cooperation" method="${method}" enctype="multipart/form-data">
                <form:hidden path="id"/>
                <table class="fhq_add_table" cellpadding="0" cellspacing="" summary="光伏在线>>光伏产业>>添加">
                    <tr>
                        <th width="20%">名称：</th>
                        <td width="80%">
                            <form:input path="name" cssClass="add_form_input"/>
                                <form:errors path="name" cssClass="error"/>
                        </td>
                    </tr>
                    <tr>
                        <th>图片：</th>
                        <td>
                            <c:if test="${cooperation.logoName != null}">
                                <img src="<spring:url value="/static/upload/aboutus/${cooperation.id}/${cooperation.logoName}?r=${random}" htmlEscape="true" />"
                                     alt="图片">
                            </c:if>
                            <input name="logoImage" type="file">
                        </td>
                    </tr>
                    <tr>
                        <th>联系地址：</th>
                        <td>
                            <form:input path="address"/>
                        </td>
                    </tr>
                    <tr>
                        <th>联系地址：</th>
                        <td>
                            <form:input path="phone"/>
                        </td>
                    </tr>
                    <tr>
                        <th>联系人：</th>
                        <td>
                            <form:input path="linkman"/>
                        </td>
                    </tr>
                    <tr>
                        <th>发布时间：</th>
                        <td>
                            <form:input path="publishDate" cssClass="fhq_add_select"/> 发布状态：
                            <form:select path="publishStatus" items="${allPublishStatus}" cssClass="fhq_add_select"/>
                        </td>
                    </tr>
                    <tr>
                        <th>文章正文：</th>
                        <td>
                            <FCK:editor instanceName="EditorDefault" inputName="content" height="500"  value="${cooperation.content}">
                            </FCK:editor>
                        </td>
                    </tr>
                    <tr>
                        <th>权值：</th>
                        <td>
                            <form:input path="orderCode"/>
                        </td>
                    </tr>
                    <tr>
                        <th>&nbsp;</th>
                        <td style="padding-top:20px;">
                            <!--<input type="button" value=" 保存并报送 ">　　　-->
                            <input type="submit" value=" 保存 ">　　　
                            <input type="button" value=" 返回 " onclick="window.location.href='/management/aboutus/cooperation/search'">
                        </td>
                    </tr>
                </table>
            </form:form>
        </div>
    </div>
</div>
</body>
</html>